<?php bf_doctype() ?><html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bf_document_title() ?></title>

<?php
if (is_singular()) {
	wp_enqueue_script('comment-reply');
	wp_enqueue_script('jquery-validate', get_template_directory_uri() . '/includes/js/jquery.validate.min.js', 'jquery', '1.5.1');
	
	$next_post = get_next_post();
	$prev_post = get_previous_post();
	
	echo '<script type="text/javascript">';
	echo 'var next_post_link = "' . get_permalink($next_post->ID) . '";';
	echo 'var prev_post_link = "' . get_permalink($prev_post->ID) . '";';
	echo '</script>';
}

wp_head();
bf_head();
?>
</head>

<body class="<?php bf_body_class() ?>">
<?php bf_body() ?>
<div id="wrapper" <?php bf_wrapper_class() ?>>
	<?php bf_header() ?>
	<div id="main" <?php bf_main_class() ?>>
		<?php bf_above_container() ?>
	    <div id="container" <?php bf_container_class() ?>>